//5��д������������еĽ��
package interview.xunlei;

public class StringBufferTest {
	public static void main(String[] arg) {
		StringBufferTest t = new StringBufferTest();
		t.test();
	}

	void test() {
		int x = 4;
		StringBuilder sb2=new StringBuilder("start");
		sb2.append("let");
		System.out.println(sb2);
		sb2.insert(4, "let");
		System.out.println(sb2);
		
		StringBuffer sb = new StringBuffer("..sdfgfe");
		System.out.println(sb);
		sb.delete(3, 6);
		//System.out.println("sb:  "+sb);
		System.out.println(sb);
		sb.insert(1, "aa");
		System.out.println(sb);
		if (sb.length() > 6) {
			x = sb.length();
		}
		System.out.println(x);
		System.out.println(sb);
		sb.delete(x - 3, x - 2);
		System.out.println(sb);
	}

}
